package exercise;

public class EX03_Q27 {

	public static void main(String[] args) {
		// #27

		int number = 0;
		int sum = 0;

		while (number < 20) {
			number++;
			sum += number;
			
			System.out.println("number = " + number);
			System.out.println("   sum = " + sum);
			System.out.println("----------------");

			if (sum >= 100)
				break;
		}

	}

}
